package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the per_ema_qsb database table.
 * 
 */
@Entity
@Table(name="per_ema_qsb")
@NamedQuery(name="PerEmaQsb.findAll", query="SELECT p FROM PerEmaQsb p")
public class PerEmaQsb implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int qsbid;

	private String qsbbank;

	//bi-directional many-to-one association to PerEmaTm
	@OneToMany(mappedBy="perEmaQsb")
	private List<PerEmaTm> perEmaTms;

	public PerEmaQsb() {
	}

	public int getQsbid() {
		return this.qsbid;
	}

	public void setQsbid(int qsbid) {
		this.qsbid = qsbid;
	}

	public String getQsbbank() {
		return this.qsbbank;
	}

	public void setQsbbank(String qsbbank) {
		this.qsbbank = qsbbank;
	}

	public List<PerEmaTm> getPerEmaTms() {
		return this.perEmaTms;
	}

	public void setPerEmaTms(List<PerEmaTm> perEmaTms) {
		this.perEmaTms = perEmaTms;
	}

	public PerEmaTm addPerEmaTm(PerEmaTm perEmaTm) {
		getPerEmaTms().add(perEmaTm);
		perEmaTm.setPerEmaQsb(this);

		return perEmaTm;
	}

	public PerEmaTm removePerEmaTm(PerEmaTm perEmaTm) {
		getPerEmaTms().remove(perEmaTm);
		perEmaTm.setPerEmaQsb(null);

		return perEmaTm;
	}

}